<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>小组成员</title>
    <style>
        * {
            /* 初始化 */
            margin: 0;
            padding: 0;
        }
        
        body {
            /* 100%窗口高度 */
            height: 100vh;
            /* 弹性布局 水平+垂直居中 */
            display: flex;
            justify-content: center;
            align-items: center;
            /* 渐变背景 */
            background: linear-gradient(200deg, #70befe, #224969);
        }

        .card {
            /* 相对定位 */
            position: relative;
            width: 240px;
            height: 350px;
            margin: 20px;
            background-color: #596770;
            border-radius: 20px;
            /* 溢出隐藏 */
            overflow: hidden;
            /* 弹性布局 */
            display: flex;
            /* 元素纵向排列 */
            flex-direction: column;
            /* 居中 */
            align-items: center;
            color: #fff;
            /* 阴影 */
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
            /* 不让其被挤压 */
            flex-shrink: 0;
        }

        .card .photo img {
            width: 100%;
            height: 100%;
            /* 保持原有尺寸比例，裁切长边 */
            object-fit: cover;
        }

        /* 默认大图 */
        .card .photo {
            /* 绝对定位 */
            position: absolute;
            top: 0;
            width: 100%;
            height: 100%;
            border-radius: 0%;
            overflow: hidden;
            /* 动画过渡 */
            transition: 0.5s;
        }

        /* 鼠标移入变小图 */
        .card:hover .photo {
            top: 30px;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
        }

        .card h1 {
            position: absolute;
            top: 370px;
            transition: 0.5s;
        }


        .card h2 {
            margin-top: 220px;
            width: 80%;
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
            font-size: 20px;
            text-align: center;
            margin-bottom: 20px;
            padding-bottom: 20px;
        }

        .card p {
            width: 90%;
            text-indent: 32px;
            font-size: 14px;
            margin-bottom: 15px;
            line-height: 30px;
        }

        .card a {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            border: 1px solid rgba(255, 255, 255, 0.5);
            padding: 8px 32px;
            border-radius: 8px;
        }

        .card a:hover {
            color: #fff;
            background-color: rgba(255, 255, 255, 0.2);
        }
    </style>
</head>

<body>
    <div class="card">
        <div class="photo"><img src="./img/umi.png" alt=""></div>
        
        <h2>张博</h2>
        <p>负责网站首页布局</p>
    </div>
    <div class="card">
        <div class="photo"><img src="./img/zmc、.jpg" alt=""></div>
        
        <h2>周毛草</h2>
        <p>负责网站首页布局细节</p>
    </div>
    <div class="card">
        <div class="photo"><img src="./img/yxx.jpg" alt=""></div>
        
        <h2>杨小霞</h2>
        <p>负责网站登录界面</p>
    </div>
    <div class="card">
        <div class="photo"><img src="./img/zxw.jpg" alt=""></div>
        
        <h2>郑小伟</h2>
        <p>负责网站课程页面、首页登录</p>
    </div>
    <div class="card">
        <div class="photo"><img src="./img/xq.jpg" alt=""></div>
        <h2>许倩</h2>
        <p>负责网站课程页面，B站讲解视频</p>
    </div>
</body>

</html>